/**
 * @Author 12629
 * @Description：
 */
public class Test {
    //阿里巴巴面试官问的问题
    public static void main4(String[] args) {
        Integer a = 127;
        Integer b = 127;

        Integer c = 128;
        Integer d = 128;
        System.out.println(a == b);
        System.out.println(c == d);

    }
    public static void main2(String[] args) {
        Integer a = 10;
        int i = a.intValue();//显示拆箱
        float f = a.floatValue();

        int ii = a;//自动的拆箱



    }
    public static void main1(String[] args) {
        int a = 10;
        Integer i = a;//自动装箱
        //Integer iii = Integer.valueOf(a);//显示装箱
        Integer ii = new Integer(a);//显示装箱
    }
}
